package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FVoucher2Mapper;
import com.ruoyi.system.domain.FVoucher2;
import com.ruoyi.system.service.IFVoucher2Service;

/**
 * 凭证2Service业务层处理
 * 
 * @author qi
 * @date 2024-05-09
 */
@Service
public class FVoucher2ServiceImpl implements IFVoucher2Service 
{
    @Autowired
    private FVoucher2Mapper fVoucher2Mapper;

    /**
     * 查询凭证2
     * 
     * @param fVoucherid2 凭证2主键
     * @return 凭证2
     */
    @Override
    public FVoucher2 selectFVoucher2ByFVoucherid2(Long fVoucherid2)
    {
        return fVoucher2Mapper.selectFVoucher2ByFVoucherid2(fVoucherid2);
    }

    /**
     * 查询凭证2列表
     * 
     * @param fVoucher2 凭证2
     * @return 凭证2
     */
    @Override
    public List<FVoucher2> selectFVoucher2List(FVoucher2 fVoucher2)
    {
        return fVoucher2Mapper.selectFVoucher2List(fVoucher2);
    }

    /**
     * 新增凭证2
     * 
     * @param fVoucher2 凭证2
     * @return 结果
     */
    @Override
    public int insertFVoucher2(FVoucher2 fVoucher2)
    {
        return fVoucher2Mapper.insertFVoucher2(fVoucher2);
    }

    /**
     * 修改凭证2
     * 
     * @param fVoucher2 凭证2
     * @return 结果
     */
    @Override
    public int updateFVoucher2(FVoucher2 fVoucher2)
    {
        return fVoucher2Mapper.updateFVoucher2(fVoucher2);
    }

    /**
     * 批量删除凭证2
     * 
     * @param fVoucherid2s 需要删除的凭证2主键
     * @return 结果
     */
    @Override
    public int deleteFVoucher2ByFVoucherid2s(Long[] fVoucherid2s)
    {
        return fVoucher2Mapper.deleteFVoucher2ByFVoucherid2s(fVoucherid2s);
    }

    /**
     * 删除凭证2信息
     * 
     * @param fVoucherid2 凭证2主键
     * @return 结果
     */
    @Override
    public int deleteFVoucher2ByFVoucherid2(Long fVoucherid2)
    {
        return fVoucher2Mapper.deleteFVoucher2ByFVoucherid2(fVoucherid2);
    }
}
